<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢迎来到我的页面</title>
<script type="text/javascript">
   function commit(event){
	  var url="";
	  var method="post";
	  if("create"== event){
		  url = "CreateMenuServlet";
	  }else{
		  url = "QueryMenuServlet";
		  method = "get";
	  }
	  
	  document.forms[0].action=url;
	  document.forms[0].method=method;
	  document.forms[0].submit();
   }
</script>
</head>
<body style="text-align:center">
<h2>您好，欢迎体验微信公众平台开发</h2>
<form>
	<input id="create" type="button" value="创建菜单"  onclick="commit('create');"/>
	<input id="query" type="button" value="查询菜单" onclick="commit('query');"/>
</form>
</body>
</html>